import { SDKTools } from "../SDKTools";

export class OpenIDData {
    private _openID: string = null;
    public get m_OpenID(): string {
        let cache = SDKTools.GetData("openID");
        if (cache) {
            this._openID = cache;
        }
        console.log("读取 m_OpenID===>" + this._openID);
        return this._openID;
    }
    public fun设置OpenID(openID: string) {
        this._openID = openID || "正在获取ID";
        SDKTools.SavaData("openID", this._openID);
        console.log(`更新openID=====>:${this._openID}`)
    }
}